The complexity of normal form rewrite sequences for Associativity

نویسنده

  • Michael Niv
چکیده

The complexity of normal form rewrite sequences for Associativity. Abstract The complexity of a particular term-rewrite system is considered: the rule of associativity (x * y) * z ⊲ x * (y * z). Algorithms and exact calculations are given for the longest and shortest sequences of applications of ⊲ that result in normal form (NF). The shortest NF sequence for a term x is always n − d rm (x), where n is the number of occurrences of * in x and d rm (x) is the depth of the rightmost leaf of x. The longest NF sequence for any term is of length n(n − 1)/2. (Klop 1992) provides an overview of the theory of term rewrite systems. There is relatively little known about the complexity of various term rewrite systems. Here, I consider a particular rewrite system with one binary connective * and one rewrite rule (x * y) * z ⊲ x * (y * z). A rewrite system − → is Strongly Normalizing (SN) iff every sequence of applications of − → is finite. A rewrite system is Church-Rosser (CR) just in case ∀x, y. A rewrite system is Weakly Church-Rosser (WCR) just in case ∀x, y, w. Let −→ be the relation between two terms such that x−→ y just in case x contains a subterm, the redex, which matches the left hand side of the rule ⊲ , and replacing the redex by the corresponding right hand side, the contractum, yields the new term y. A term is in normal form (NF) if it contains no redex. Given a term x, define λ(x) (resp. ρ(x)) refers to its the left (right) child of x.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Associative-Commutative Reduction Orderings

Rewrite systems are sets of directed equations used to compute by repeatedly replacing subterms in a given expression by equal terms until a simplest form possible (a normal form) is obtained. If a rewrite system is terminating (i.e., allows no infinite sequence of rewrites), then every expression has a normal form. A variety of orderings, called reduction orderings, have been designed for prov...

متن کامل

Proving Termination of Unfolding Graph Rewriting for General Safe Recursion

In this paper we present a new termination proof and complexity analysis of unfolding graph rewriting which is a specific kind of infinite graph rewriting expressing the general form of safe recursion. We introduce a termination order over sequences of terms together with an interpretation of term graphs into sequences of terms. Unfolding graph rewrite rules expressing general safe recursion ca...

متن کامل

Term Rewrite Systems for Lattice Theory

The study of the equational theory of a class K of algebras and their free algebras FK(X) is greatly facilitated by a normal form for the terms over the language of K. For terms u and v over some set of variables X, u is equivalent to v modulo K if the equation u ≈ v holds identically in K (i.e., for all substitutions of the variables into all algebras in K). We write this u ≈ v (mod K). By a n...

متن کامل

A critical pair criterion for completion modulo a congruence

Rewrite systems axe collections of directed equations (rules) used to compute by repeatedly replacing subterms in a given formula until a simplest form possible (normal form) is obtained. Many formula manipulation systems such as REDUCE or MAGSYMA use equations for simplification in this manner. Canonical (i.e., terminating Church-Rosser) rewrite systems have the property that all equal terms (...

متن کامل

Complexity Analysis of Precedence Terminating Infinite Graph Rewrite Systems

The general form of safe recursion (or ramified recurrence) can be expressed by an infinite graph rewrite system including unfolding graph rewrite rules introduced by Dal Lago, Martini and Zorzi, in which the size of every normal form by innermost rewriting is polynomially bounded. Every unfolding graph rewrite rule is precedence terminating in the sense of Middeldorp, Ohsaki and Zantema. Altho...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/cmp-lg/9406030  شماره 

صفحات  -

تاریخ انتشار 1994